package com.stylefeng.guns.common.dto.acct;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

@Data
@ApiModel("登录请求")
public class LoginReq {

    @ApiModelProperty(value = "手机号",required = true)
    @NotEmpty
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$")
    private String mobileNo;

    @ApiModelProperty(value = "密码",required = true)
    @NotEmpty
    private String cipher;
}
